<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('提交代码审核')"/>
    <th:block th:include="include :: bootstrap-fileinput-css"/>
    <th:block th:include="include :: datetimepicker-css"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-applet-submit-audit">
        <input type="hidden" name="commitId" th:value="${commitInfo.id}"/>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span style="color: red; ">*</span>小程序名称：</label>
            <div class="col-sm-7">
                <input class="form-control" type="text" th:value="${appletInfo.nickname}" disabled/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span style="color: red; ">*</span>小程序AppId：</label>
            <div class="col-sm-7">
                <input class="form-control" type="text" th:value="${commitInfo.appletAppId}" disabled/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span style="color: red; ">*</span>体验版二维码：</label>
            <div class="col-sm-7">
                <img th:src="${commitInfo.demoQrCode}" style="max-width: 100px;max-height: 100px;">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span style="color: red; ">*</span>版本号：</label>
            <div class="col-sm-4">
                <input class="form-control" type="text" th:value="${commitInfo.userVersion}" disabled/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label"><span style="color: red; ">*</span>版本描述：</label>
            <div class="col-sm-7">
                <textarea class="form-control" th:text="${commitInfo.userDesc}" disabled></textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">反馈内容：</label>
            <div class="col-sm-7">
                <textarea class="form-control" placeholder="不超过200字" name="feedbackInfo"></textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">版本说明和功能解释：</label>
            <div class="col-sm-7">
                <textarea class="form-control" name="versionDesc"></textarea>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: bootstrap-fileinput-js"/>

<script type="text/javascript">
    var prefix = ctx + "back/wechatOpen";

    function submitHandler() {
        if ($.validate.form()) {
            let data = $('#form-applet-submit-audit').serializeArray();
            $.operate.save(prefix + "/submitAudit", data);
        }
    }
</script>
</body>
</html>
